﻿<%@ Page Title="" Language="VB" MasterPageFile="~/App/Master/App.master" AutoEventWireup="false" CodeFile="dm.aspx.vb" Inherits="App_dm" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CphHead" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CphMainContent" runat="Server">
    <asp:ScriptManagerProxy runat="server">
        <Scripts>
            <asp:ScriptReference Path="~/js/jquery/js/jquery.jstree.js" />
            <asp:ScriptReference Path="dm.aspx.js" />
        </Scripts>
    </asp:ScriptManagerProxy>
    <%--    <script type="text/javascript" src="<% = Me.ResolveClientUrl("~/js/jquery/js/jquery.jstree.js")  %>"></script>
    <script type="text/javascript" src="QueryAnalisys.js"></script>
    --%>
    <script type="text/javascript">

        var root_folder_id = <% = Me.Items("RootFolderID")%>;
        var webservice_url = '<% = Me.ResolveClientUrl("~/Webservice/Folder.asmx/") %>';
        var icons_path = '<% = Me.ResolveClientUrl("~/Style/App/img/Icons/")%>';

    </script>
    <div>


        <div class="row">

            <div class="span4">
                <div class="wrapper">

                    <h5 class="title titolo-cassetto">Folder
                        
                    </h5>
                    <div class="wrapper-inner">
                        <div>
                            <input type="button" id="add_folder" value="ADD" style="" />
                            <input type="button" id="rename_folder" value="RENAME" style="" />
                            <input type="button" id="remove_folder" value="REMOVE" style="" />
                        </div>
                        <div id="demo1" style="height: 600px; overflow: auto;">
                        </div>
                    </div>
                </div>
            </div>
            <div class="span8">
                <div class="wrapper">

                    <h5 class="title  titolo-cassetto">Query</h5>

                    <div class="wrapper-inner">
                        <asp:UpdatePanel ID="UpPElaborations" runat="server" UpdateMode="Conditional">
                            <ContentTemplate>
                                <asp:Button ID="BtnReload_UpPElaborations" runat="server" Style="display: none;" Text="Reload" />
                                <asp:HiddenField ID="HidSelectFolderId" runat="server" Value="0" />
                                <asp:Button ID="BtnAddQuery" runat="server" Text="Add query" />
                                <div id="Grid_check" style="height: 600px; overflow: auto;">
                                    <asp:GridView ID="GridElaborations" runat="server" Width="100%" AutoGenerateColumns="False" CssClass="summary-results" ShowHeader="true" AllowSorting="true" AllowPaging="True">
                                        <Columns>
                                            <asp:TemplateField HeaderText="" HeaderStyle-Width="10px">
                                                <HeaderTemplate>
                                                    <input id="ChkAllElab" type="checkbox" value="" />
                                                </HeaderTemplate>
                                                <ItemTemplate>
                                                    <span id='<%# Eval("id") %>' class="jstree-draggable" onmousedown="onmousedown_chk_elab($(this));" onmouseup="onmouseup_chk_elab($(this));" onclick="return false;">
                                                        <asp:CheckBox runat="server" ID="ChkElab" Visible='<%# Eval("id") <> 0 %>' />
                                                    </span>
                                                </ItemTemplate>
                                                <ItemStyle HorizontalAlign="Center" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="" HeaderStyle-Width="65px" ItemStyle-HorizontalAlign="Center">
                                                <ItemTemplate>
                                                    <img src='<%# Eval("avatar")%>' style="width: 48px;" />

                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="post" HeaderStyle-Width="" SortExpression="Query">
                                                <ItemTemplate>
                                                            <div style="font-size: 11px; color: #555555; float: right; padding: 5px;">
                                                                <asp:Label runat="server" Text='<%# myui.print.TimeNow(eval("pubb_date").value) %>'></asp:Label>
                                                            </div>

                                        <b>@<asp:Label runat="server" Text='<%# Eval("username")%>'></asp:Label></b><br />

                                                            <asp:Label runat="server" Text='<%# MyUI.Print .Post (eval("post_text")) %>'></asp:Label>

                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                        <AlternatingRowStyle CssClass="AlternatingRow Padding1" />
                                        <HeaderStyle CssClass="Header" />
                                        <SelectedRowStyle CssClass="SelectedRow" />
                                        <EditRowStyle CssClass="EditRow" />
                                        <RowStyle CssClass="Row Padding1" />
                                    </asp:GridView>
                                </div>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </div>
                </div>

            </div>
        </div>

    </div>

</asp:Content>
